package com.ych.controller;

import com.ych.beans.Message;
import com.ych.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/sys")
public class LogController {
    @Autowired
    LogService service;

    @GetMapping("/log")
    public Message selectLog(@RequestParam Integer pageNo, @RequestParam(required = false) String key){
        return service.selectLog(pageNo,key);
    }
}
